<template>
  <div class="app">
    <h2>我是App组件</h2>
    <Hello/>
    <h3>全局x的值：{{ x }}</h3>
    <h3>当前求和为：{{ sum }}</h3>
    <h3 v-beauty="sum">好开心</h3>
  </div>
</template>

<script setup lang="ts" name="App">
  import {ref} from "vue";
  let sum = ref(0)
</script>

<style scoped>
  .app{
    background-color: #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px;
  }
</style>